package cn.ekuma.epos.order.model;

import cn.ekuma.data.ui.swing.AbstractDTOTableModel;

import com.openbravo.bean.erp.OrderProcessConfig;

public class OrderProcessConfigTableModel extends AbstractDTOTableModel<OrderProcessConfig> {

	@Override
	public Object getValueAt(int rowIndex, int columnIndex) {
		if(columnIndex==0)
			return getObj(rowIndex).getPriority();
		return getObj(rowIndex).getProcessName();
	}

	@Override
	public String[] getColumnNames() {
		return new String[]{
				"优先级",
				"处理过程"
		};
	}
}
